﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CF9 RID: 3321
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayBackGroundMusicScRsp : IMessage<PlayBackGroundMusicScRsp>, IMessage, IEquatable<PlayBackGroundMusicScRsp>, IDeepCloneable<PlayBackGroundMusicScRsp>, IBufferMessage
	{
		// Token: 0x170029CE RID: 10702
		// (get) Token: 0x0600945A RID: 37978 RVA: 0x0018A0B9 File Offset: 0x001882B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayBackGroundMusicScRsp> Parser
		{
			get
			{
				return PlayBackGroundMusicScRsp._parser;
			}
		}

		// Token: 0x170029CF RID: 10703
		// (get) Token: 0x0600945B RID: 37979 RVA: 0x0018A0C0 File Offset: 0x001882C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayBackGroundMusicScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170029D0 RID: 10704
		// (get) Token: 0x0600945C RID: 37980 RVA: 0x0018A0D2 File Offset: 0x001882D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayBackGroundMusicScRsp.Descriptor;
			}
		}

		// Token: 0x0600945D RID: 37981 RVA: 0x0018A0D9 File Offset: 0x001882D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayBackGroundMusicScRsp()
		{
		}

		// Token: 0x0600945E RID: 37982 RVA: 0x0018A0E1 File Offset: 0x001882E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayBackGroundMusicScRsp(PlayBackGroundMusicScRsp other) : this()
		{
			this.currentMusicId_ = other.currentMusicId_;
			this.playMusicId_ = other.playMusicId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600945F RID: 37983 RVA: 0x0018A11E File Offset: 0x0018831E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayBackGroundMusicScRsp Clone()
		{
			return new PlayBackGroundMusicScRsp(this);
		}

		// Token: 0x170029D1 RID: 10705
		// (get) Token: 0x06009460 RID: 37984 RVA: 0x0018A126 File Offset: 0x00188326
		// (set) Token: 0x06009461 RID: 37985 RVA: 0x0018A12E File Offset: 0x0018832E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurrentMusicId
		{
			get
			{
				return this.currentMusicId_;
			}
			set
			{
				this.currentMusicId_ = value;
			}
		}

		// Token: 0x170029D2 RID: 10706
		// (get) Token: 0x06009462 RID: 37986 RVA: 0x0018A137 File Offset: 0x00188337
		// (set) Token: 0x06009463 RID: 37987 RVA: 0x0018A13F File Offset: 0x0018833F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlayMusicId
		{
			get
			{
				return this.playMusicId_;
			}
			set
			{
				this.playMusicId_ = value;
			}
		}

		// Token: 0x170029D3 RID: 10707
		// (get) Token: 0x06009464 RID: 37988 RVA: 0x0018A148 File Offset: 0x00188348
		// (set) Token: 0x06009465 RID: 37989 RVA: 0x0018A150 File Offset: 0x00188350
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06009466 RID: 37990 RVA: 0x0018A159 File Offset: 0x00188359
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayBackGroundMusicScRsp);
		}

		// Token: 0x06009467 RID: 37991 RVA: 0x0018A168 File Offset: 0x00188368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayBackGroundMusicScRsp other)
		{
			return other != null && (other == this || (this.CurrentMusicId == other.CurrentMusicId && this.PlayMusicId == other.PlayMusicId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009468 RID: 37992 RVA: 0x0018A1C4 File Offset: 0x001883C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurrentMusicId != 0U)
			{
				num ^= this.CurrentMusicId.GetHashCode();
			}
			if (this.PlayMusicId != 0U)
			{
				num ^= this.PlayMusicId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009469 RID: 37993 RVA: 0x0018A235 File Offset: 0x00188435
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600946A RID: 37994 RVA: 0x0018A23D File Offset: 0x0018843D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600946B RID: 37995 RVA: 0x0018A248 File Offset: 0x00188448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.PlayMusicId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.PlayMusicId);
			}
			if (this.CurrentMusicId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.CurrentMusicId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600946C RID: 37996 RVA: 0x0018A2C0 File Offset: 0x001884C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurrentMusicId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurrentMusicId);
			}
			if (this.PlayMusicId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlayMusicId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600946D RID: 37997 RVA: 0x0018A330 File Offset: 0x00188530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayBackGroundMusicScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurrentMusicId != 0U)
			{
				this.CurrentMusicId = other.CurrentMusicId;
			}
			if (other.PlayMusicId != 0U)
			{
				this.PlayMusicId = other.PlayMusicId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600946E RID: 37998 RVA: 0x0018A394 File Offset: 0x00188594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600946F RID: 37999 RVA: 0x0018A3A0 File Offset: 0x001885A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 40U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.CurrentMusicId = input.ReadUInt32();
						}
					}
					else
					{
						this.PlayMusicId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040038AF RID: 14511
		private static readonly MessageParser<PlayBackGroundMusicScRsp> _parser = new MessageParser<PlayBackGroundMusicScRsp>(() => new PlayBackGroundMusicScRsp());

		// Token: 0x040038B0 RID: 14512
		private UnknownFieldSet _unknownFields;

		// Token: 0x040038B1 RID: 14513
		public const int CurrentMusicIdFieldNumber = 8;

		// Token: 0x040038B2 RID: 14514
		private uint currentMusicId_;

		// Token: 0x040038B3 RID: 14515
		public const int PlayMusicIdFieldNumber = 5;

		// Token: 0x040038B4 RID: 14516
		private uint playMusicId_;

		// Token: 0x040038B5 RID: 14517
		public const int RetcodeFieldNumber = 4;

		// Token: 0x040038B6 RID: 14518
		private uint retcode_;
	}
}
